package com.source.boot01.service1;

import com.source.boot01.domain.Student;
import com.source.boot01.mapper.StudentMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author wengqy
 * @Date 2021/1/25
 */
@Service
public class StudentService {
    @Resource
    StudentMapper studentMapper;

   public Student getStudentById(int id){
        return studentMapper.getStudentById(id);
    }

    public Student getStudentClassRoomById(int id){
        return studentMapper.getStudentClassRoomById(id);
    }

    public List<Student> getStudentIns(String name){
        return studentMapper.getStudentIns(name);
    }
}
